⚡ Sprint = dvojklik na ← nebo →
Otoč telefon na šířku (landscape) a klepni na ⛶ pro celou obrazovku.
Ovládání: ← → pohyb | MEZERNÍK + směr = sprint 400W | P = pauza | M = hudba (M+1..3) | S = zvuk (S+1..2)
if (btnSound){ const syncSoundBtn = ()=>{ btnSound.textContent = SFX_ENABLED ? '🔊 S' : '🔇 S'; btnSound.classList.toggle('active', SFX_ENABLED); btnSound.setAttribute('aria-pressed', String(SFX_ENABLED)); }; syncSoundBtn(); btnSound.addEventListener('click', (e)=>{ e.preventDefault(); SFX_ENABLED = !SFX_ENABLED; localStorage.setItem('savebeer_sfx', SFX_ENABLED ? '1' : '0'); if (SFX_ENABLED) ensureAudio(); syncSoundBtn(); }, {passive:false}); } // Keyboard toggle (M) window.addEventListener('keydown', (e)=>{ if (e.code === 'KeyM'){ SFX_ENABLED = !SFX_ENABLED; localStorage.setItem('savebeer_sfx', SFX_ENABLED ? '1' : '0'); if (SFX_ENABLED) ensureAudio(); if (typeof btnSound !== 'undefined' && btnSound){ btnSound.textContent = SFX_ENABLED ? '🔊 S' : '🔇 S'; btnSound.classList.toggle('active', SFX_ENABLED); } } });